package com.dp.mallchat.transaction.config;

import com.dp.mallchat.transaction.aspect.SecureInvokeAspect;
import com.dp.mallchat.transaction.dao.SecureInvokeRecordDao;
import com.dp.mallchat.transaction.mapper.SecureInvokeRecordMapper;
import com.dp.mallchat.transaction.service.MQProducter;
import com.dp.mallchat.transaction.service.SecureInvokeRecordService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: dupeng
 * @CreateTime: 2024-06-30  22:46
 * @Description: TODO
 */
@Configuration
@MapperScan(basePackageClasses = SecureInvokeRecordMapper.class)
@Import({SecureInvokeAspect.class, SecureInvokeRecordDao.class})
@EnableScheduling
public class TransactionAutoConfiguration {


    @Bean
    public SecureInvokeRecordService secureInvokeRecordDao(){
        return new SecureInvokeRecordService();
    }

    @Bean
    public MQProducter mqProducter(){
        return new MQProducter();
    }


}
